import requests

url = "http://127.0.0.1:5000/file"

with open('./test.jpg', 'rb') as f:
    data = f.read()

r = requests.post(url=url,files={'f': data})
print(r.text)
